import { Result } from '../utils';

const fakeUserInfo = {
  userId: '1',
  username: 'vben',
  realName: 'Vben Admin',
  desc: 'manager',
  password: '123456',
  token: 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxMzgxMTgwNTA1MiIsImNsb3VkVHlwZSI6MSwiaXNzIjoiSW50ZXJuZXQgSG9zcGl0YWwiLCJpYXQiOjE3MjM3MDg0ODQsImF1dGgiOiIiLCJleHAiOjE3MjQ5MTgwODR9.O_FzuUrC_c1ZKtKJ6RHWag5cYXi3tM_fjS07A9-iMAnPMBknNOrj3XmbnCLhCD5iuddDlDOGyOi6LlWLRpSxGA',
  roles: [
    {
      roleName: 'Super Admin',
      value: 'super',
    },
  ],
};
export default class UserService {
  async login() {
    return Result.success(fakeUserInfo);
  }

  async getUserInfoById() {
    return Result.success(fakeUserInfo);
  }
}
